package com.snatch.snatchmgr.entity.db;

import java.io.Serializable;
import java.util.Date;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @ClassName: ThirdMatch
 * @Description: 第三方赛事类
 * @author lilei
 * @date 2012-6-25 下午04:40:22
 * 
 */
public class ThirdMatch implements Serializable {

	private static final long serialVersionUID = -2400048060901132751L;
	private int id;
	private String gameCode;
	private String leagueSelfid;
	private String matchSelfid;
	private String leagueName; // 联赛名称
	private String matchName;  
	private int normalMatchId;// 标准ID
	private int normalLeagueName;
	private int normalMatchName;
	private int status = 1;// 匹配状态 1:未匹配 3:手工匹配 4:审核通过
	private String target;// 赛事所属第三方: hg:皇冠 sb:沙巴 lj:利记
	private Date startTime; // 开赛时间"yyyy-MM-dd hh24:mm:ss"
	private String startTimestr;
	private String matchType; // 数据类型 滚球"gq", 单式"ds",早餐"zc"
	private int reversal = 0;// 判断赛事主客队是否反转 0为正 1为反
	boolean bunch = false; //是否可以接受串
	int bunchNumber = 0;
	private long systemUpdateTime;// 系统更新时间
	private long changeTime;

	private boolean valid = true;// 赛事是否有效标识 true=有效 false=无效 ，当赛事从单式转滚球时，在单式中会被标识为无效赛事
    private Date lastTime;
	
	
	// 第三方玩法信息KEY:玩法名称+GAMETIME(全场/上半场)
	private ConcurrentHashMap<String, ThirdPlayinfo> thirdPlayinfos = new ConcurrentHashMap<String, ThirdPlayinfo>();
	
	
	public String toString(){
		StringBuffer bf = new StringBuffer();
		bf.append(gameCode);
		bf.append("_");
		bf.append(leagueSelfid);
		bf.append("_");
		bf.append(matchSelfid);
		bf.append("_");
		bf.append(leagueName);
		bf.append("_");
		bf.append(matchName);
		return bf.toString();
	}
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getLeagueName() {
		return leagueName;
	}

	public void setLeagueName(String leagueName) {
		this.leagueName = leagueName;
	}


	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}


	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public int getReversal() {
		return reversal;
	}

	public void setReversal(int reversal) {
		this.reversal = reversal;
	}

	public ConcurrentHashMap<String, ThirdPlayinfo> getThirdPlayinfos() {
		return thirdPlayinfos;
	}

	public void setThirdPlayinfos(
			ConcurrentHashMap<String, ThirdPlayinfo> thirdPlayinfos) {
		this.thirdPlayinfos = thirdPlayinfos;
	}

	public long getSystemUpdateTime() {
		return systemUpdateTime;
	}

	public void setSystemUpdateTime(long systemUpdateTime) {
		this.systemUpdateTime = systemUpdateTime;
	}

	public boolean isValid() {
		return valid;
	}

	public void setValid(boolean valid) {
		this.valid = valid;
	}

	public String getMatchType() {
		return matchType;
	}

	public void setMatchType(String matchType) {
		this.matchType = matchType;
	}

	public boolean isBunch() {
		return bunch;
	}

	public void setBunch(boolean bunch) {
		this.bunch = bunch;
	}

	public int getBunchNumber() {
		return bunchNumber;
	}

	public void setBunchNumber(int bunchNumber) {
		this.bunchNumber = bunchNumber;
	}

	public long getChangeTime() {
		return changeTime;
	}

	public void setChangeTime(long changeTime) {
		this.changeTime = changeTime;
	}


	public String getMatchName() {
		return matchName;
	}

	public void setMatchName(String matchName) {
		this.matchName = matchName;
	}


	public String getGameCode() {
		return gameCode;
	}

	public void setGameCode(String gameCode) {
		this.gameCode = gameCode;
	}

	public int getNormalLeagueName() {
		return normalLeagueName;
	}

	public void setNormalLeagueName(int normalLeagueName) {
		this.normalLeagueName = normalLeagueName;
	}

	public int getNormalMatchName() {
		return normalMatchName;
	}

	public void setNormalMatchName(int normalMatchName) {
		this.normalMatchName = normalMatchName;
	}

	public int getNormalMatchId() {
		return normalMatchId;
	}

	public void setNormalMatchId(int normalMatchId) {
		this.normalMatchId = normalMatchId;
	}

	public String getLeagueSelfid() {
		return leagueSelfid;
	}

	public void setLeagueSelfid(String leagueSelfid) {
		this.leagueSelfid = leagueSelfid;
	}

	public String getMatchSelfid() {
		return matchSelfid;
	}

	public void setMatchSelfid(String matchSelfid) {
		this.matchSelfid = matchSelfid;
	}

	public Date getLastTime() {
		return lastTime;
	}

	public void setLastTime(Date lastTime) {
		this.lastTime = lastTime;
	}

	public String getStartTimestr() {
		return startTimestr;
	}

	public void setStartTimestr(String startTimestr) {
		this.startTimestr = startTimestr;
	}


	
}
